package com.nmsl.masterdocker.controller;

import com.nmsl.common.core.controller.BaseController;
import com.nmsl.common.core.domain.AjaxResult;
import com.nmsl.masterdocker.domain.Cure;
import com.nmsl.masterdocker.domain.Inpatient;
import com.nmsl.masterdocker.service.impl.InpatientServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import com.nmsl.common.core.page.TableDataInfo;
@RestController
/**
 * @author jin
 * @date 2025/2/21
 */
@RequestMapping("/jin/inpatient")
public class InpatientController extends BaseController {
    @Autowired
    private InpatientServiceImpl inpatientService;
    @RequestMapping("/list")
    public TableDataInfo list(Long doctorId){
       startPage();
        List<Inpatient> list = inpatientService.getAllInpatient(doctorId);
        return getDataTable(list);
    }
    @PostMapping("/add")
    public AjaxResult addInpatient(Inpatient inpatient) {
        return null;
    }
}
